﻿<UserControl x:Class="Reader.View.BoolListView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
               xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
                  
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Loaded="UserControl_Loaded">
    <StackPanel>
    <ListBox ItemsSource="{Binding}" HorizontalAlignment="Stretch" Name="listBox1" VerticalAlignment="Bottom">
        <ListBox.Template>
            <ControlTemplate>
                <controlsToolkit:WrapPanel>
                    <ItemsPresenter  HorizontalAlignment="Stretch" VerticalAlignment="Bottom">

                    </ItemsPresenter>
                </controlsToolkit:WrapPanel>
            </ControlTemplate>
        </ListBox.Template>
        <ListBox.ItemsPanel>
            <ItemsPanelTemplate>
                <controlsToolkit:WrapPanel FlowDirection="LeftToRight"/>
            </ItemsPanelTemplate>
        </ListBox.ItemsPanel>
        <ListBox.ItemTemplate>
            <DataTemplate>
                <HyperlinkButton  Width="250" CommandParameter="{Binding BookPage}"  Content="{Binding BookName}" FontSize="14" Click="HyperlinkButton_Click" />
            </DataTemplate>
        </ListBox.ItemTemplate>
    </ListBox>

    </StackPanel>
</UserControl>
